import request from "../utils/http/request";
import  qs from 'qs'
//上传视频(批量)
export function uploadFileList(data: any,config:any) {
    return request({
        url: "/lesson/batchInsert",
        method: "post",
        data,
        onUploadProgress:config.onUploadProgress
    })
}

//删除课时单个
export function deleteCourse(data: any) {
    return request({
        url: "/lesson/delete",
        method: "post",
        data:qs.stringify(data)
    })
}

//删除课时多个
export function deleteCourseList(data: any) {
    return request({
        url: "/lesson/batchDelete",
        method: "post",
        data:qs.stringify(data)
    })
}

//课时信息查询
export function courseList(data: any) {
    return request({
        url: "/lesson/list",
        method: "post",
        data:qs.stringify(data)
    })
}
//同步数据到简道云
export function syncToJd(data: any) {
    return request({
        url: "/lesson/sync",
        method: "post",
        data:qs.stringify(data)
    })
}
//同步数据到简道云
export function getSyncStatus(data:any) {
    console.log(data,'data')
    return request({
        url: "/lesson/txyToJdy",
        data:{txyMap:data},
        method: "post"
    })
}